package com.bto.solar.work.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@Accessors(chain = true)
public class UpdatePasswordReq {

    @NotBlank(message = "修改类型不能为空")
    @ApiModelProperty("修改类型")
    private String type;

    @ApiModelProperty("原密码")
    private String originPassword;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty("新密码")
    private String newPassword;

    @ApiModelProperty("验证码")
    private String code;
}
